<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('AdminLogs/index')}">后台操作日志</a></li>
        <li><a href="{:url('AdminLogs/taskLog')}">计划任务日志</a></li>
        <li><a href="{:url('AdminLogs/runtime')}">后台缓存监控</a></li>
    </ul>
    <form method="get" action="{:url('AdminLogs/index')}">
        <div class="well form-inline margin-top-20">
            用户名:
            <input type="text" class="form-control" name="user_login" style="width: 120px;" value="{:input('request.user_login/s','')}" placeholder="请输入{:lang('USERNAME')}">
            关键词：
            <input type="text" class="form-control" name="keyword" style="width: 120px;" value="{:input('request.keyword/s','')}" placeholder="请输入关键词">
            时间：
            <input id="sDay" class="form-control js-date" style="width: 105px;" type="text" value="{:input('sDay',date('Y-m-d'))}" name="sDay">
            ~
            <input id="eDay" class="form-control js-date" style="width: 105px;" type="text" value="{:input('eDay',date('Y-m-d'))}" name="eDay">
            <input type="submit" class="btn btn-primary" value="搜索" />
        </div>
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th width="3%">ID</th>
                <th width="8%">操作用户</th>
                <th width="5%">状态</th>
                <th width="25%">详细信息</th>
                <th>参数</th>
                <th width="8%">ip</th>
                <th width="8%">时间</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.user_login}</td>
                    <td><eq name="vo.status" value="1">成功<else/>失败</eq></td>
                    <td>{$vo.info}</td>
                    <td style="word-break: break-all;">{$vo.params}</td>
                    <td>{$vo.ip}</td>
                    <td>{$vo.log_time|date="Y-m-d H:i:s"}</td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>